<%@ page import="com.confidena.Notification" %>



<div class="fieldcontain ${hasErrors(bean: notificationInstance, field: 'person', 'error')} ">
	<label for="person">
		<g:message code="notification.person.label" default="Person" />
		
	</label>
	<g:select id="person" name="person.id" from="${com.confidena.security.Person.list()}" optionKey="id" value="${notificationInstance?.person?.id}" class="many-to-one" noSelection="['null': '']"/>
</div>

<div class="fieldcontain ${hasErrors(bean: notificationInstance, field: 'person2', 'error')} ">
	<label for="person2">
		<g:message code="notification.person2.label" default="Person2" />
		
	</label>
	<g:select id="person2" name="person2.id" from="${com.confidena.security.Person.list()}" optionKey="id" value="${notificationInstance?.person2?.id}" class="many-to-one" noSelection="['null': '']"/>
</div>

<div class="fieldcontain ${hasErrors(bean: notificationInstance, field: 'personGame', 'error')} ">
	<label for="personGame">
		<g:message code="notification.personGame.label" default="Person Game" />
		
	</label>
	<g:select id="personGame" name="personGame.id" from="${com.confidena.PersonGame.list()}" optionKey="id" value="${notificationInstance?.personGame?.id}" class="many-to-one" noSelection="['null': '']"/>
</div>

<div class="fieldcontain ${hasErrors(bean: notificationInstance, field: 'date', 'error')} required">
	<label for="date">
		<g:message code="notification.date.label" default="Date" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="date" precision="day"  value="${notificationInstance?.date}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: notificationInstance, field: 'type', 'error')} required">
	<label for="type">
		<g:message code="notification.type.label" default="Type" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="type" type="number" value="${notificationInstance.type}" required=""/>
</div>

